Fix tokenization for words containing non-ascii characters