Fix application/xml output from POSTs to .../transform so that valid XML is returned.