XmlParser now converts encodings back from DOM's internal UTF-8 if necessary, closes #310