encodeSafeXml inside XML logs