[MIG-81] Filtering out any invalid XML characters from input