Yes. See the Encode module which I already linked in my previous reply.
In reply to Re^3: not well formed (invalid token) by Corion in thread not well formed (invalid token) by Anonymous Monk