Added correct parsing of unicode symbols

fixed exception in parsing symbols like em dash or cyrillic letters.
Tests are included