Creates valid and UTF-8 XML