If xml has bad characters, try to remove them.