Use the Headers class to build the default headers for handshakes rather than using loads of ugly string operations.