Fix invalid char
Also pass in the headers of the request that issued the handshake