The interpretation of the charge ratio of cosmic-ray muons