A pH-dependent molecular switch for virion uncoating