ANSI to UTF-8 encoding fixes