Fixed infinite loop and added ascii tests.
Made the changes in the coffee script files, rather than the exported js files.
Small test change
Merge pull request #6 from MailOnline/master

Fixed infinite loop in encodeNonASCII method