Make the output safe for XML.