normalizing escape characters in xml