Encode Text as UTF-8 before highlighting (fixes #468)

Prevent UndefinedConversionError on non ASCII-Chars