Adding code to fix bad XML characters.