fix websocket packets encapsulation for packets gt 64kb