Replace invalid XML chars with space. See issue #48