Handle unicode/utf8 problems