Fixed an XML escaping issue in the SAMI writer.
Fixed some XML escaping issues in both SAMI and DFXP writers