Someone forgot to test for this: Create an application manifest document (e.g. foo.exe.manifest ) and include it as part of your foo application. Mark the <xml> tag with the encoding="UTF-8" atribute. Compile and test your sample app; works as expected.