Fix the bug with WebSocketTransport.send usage: will cause problem with Safari