Fix inappropriate characters on convert to UTF-8