Make sure no bytes are lost during the handshake

This fix the problem @jfarcand reported on the netty issue tracker:
https://github.com/netty/netty/issues/1331

I wonder why you not used the WebSocketClientHandshakerFactory as it would have returned the WebSocketClientHandshaker08 which handles all of this correctly already.