convert UTF-8 code to ANSI