attempting to make the output valid XML; also figured out how to turn off PTB3 escaping