Fix character type to UTF-8