Escapes punctuation chars in their xml representation.