Fixed a crash on unicode characters.
Merge pull request #14 from golddranks/fix_unicode

Fixed a crash on unicode characters.