XA: Fix XA_XMLEncode with proper escaping of Predefined entities