Correctly encode CONNECT message

Before, we weren't including client_id in the remaining length