Updated following a StackOverflow solution

Matt Neuburg posted this solution - http://stackoverflow.com/a/24916777/1694526 - to the Range issue and the extension works much better with it because it handles Unicode scalars now.