My earphones kept breaking (I use them while working out) so I reinforced the sensitive area with a heat-shrink wire wrap, like these:
http://www.amazon.com/dp/B008WWC6FU
It works wonders. I'm not sure this would work for Mac chargers because you couldn't get the sleeve over the ends, but it also works iPhone charger cables.