fix unicode content parsing

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