fleshed out ClientEncodeHello()