Fix/xml escape

fix all writeHeader_ with writeXMLEscape

partial fix of #24