[ISSUE #31] Fix encoding of websocket frames larger than 65535 bytes.