Escape invalid XML characters with the question marks.