Improve blocking of characters not allowed in XML