Add support for UTF-16 surrogate pairs to the XML validator