Fixed line endings in XML and JSON output