Handle special characters in XML