The parse-xml function now also takes an optional source-encoding. The XML decoder will only attempt to change the encoding if the text is not already in the format specified from the source.