replace pseudo UTF-8 with real wide character support