We should (need to) implement the "CONVERT" option for "XA RECOVER" command, as is done in MySQL 5.7.
"XID values may contain nonprintable characters. As of MySQL 5.7.5, XA RECOVER permits an optional CONVERT XID clause so that clients can request XID values in hexadecimal."
However, there is an existing MySQL bug about that specific implementation:
So we should address that bug as well when this is implemented, as one needs a usable Xid value for some of the XA commands, and this is not always obtainable from elsewhere.