Add full encoding and decoding support to web sockets