Fix unicodings, workaround Expat XML bug