make serialize.lua JIT-friendly

LuaJIT does not handle escapes quite the way that vanilla Lua does, thus LuaJIT builds will stop upon hitting the \[\] in serialize.lua. This commit removes them.