Strip invalid XML characters.

Fixing `illegal character '&' in raw string` issue.