bugfix websocket send encoding