Fix writing AndroidManifest.xml not in UTF-8 on some environment.