implement character validation methods in XmlConvert. Fix bug #11910.