Fixes #6497 by Removing invalid XML characters from the object
Merge pull request #6506 from dotCMS/issue-6497-handle-non-valid-xml-chars

Fixes #6497 by Removing invalid XML characters from the object