Adds escape handling for sensitive characters in XML

- Certain characters need to be properly escaped before going into
  datasets.xml
Merge pull request #1954 from lukecampbell/xmlescape

CIDEVSTC-302 - Adds escape handling for sensitive characters in XML