No longer attempt to tidy up XML for the sake of pretty printing; if XML is invalid, fail out to plaintext. XML will only be pretty printed for valid XML.