Added filtering out of invalid XML characters