Fix for Cyrillic text input on OSX

Would have affected other languages too; just most noticable for Cyrillic.
Merge pull request #405 from runrevfraser/refactor-syntax_unicode

Fix for Cyrillic text input on OSX