Restored the signature of Encode_XSEncoding() to address RT#94478