engine.io-parser: encode/decode packet