convert text to UTF-8