Fixed double encoding of WS messages