Clean up chars, which are invalid in XML: NULLs, control chars, etc.