`setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes")` is needed because of buggy Java which would still leave `<?xml version="1.0" encoding="utf-8"?>` even if we change encoding to `UTF-16` in next line