HH-47462 fix issue with surrogate pairs in FilteredXMLStreamWriter