Fixed handshake error (base64 encoding bug)