Add charAt when looping through string for IE8

We're using this plugin to shorten our urls on IE8. It's working really well, but we noticed that it can't handle looping over a string without an explicit "charAt."

I put it in and it's fixing the problem.