Remove encoding from XmlGen constructor