WebSocket: Chrome-compatible cookie parsing