In the documentation here:
http://wiki.freeswitch.org/wiki/Esl#serialize

There is a 'format' argument for serialize.  What does that do?  Can't easily tell from the documentation, or the client library code.