Fix keepalives by sending spaces in the socket directly

The Client.send() method expects a stanza to be sent, so in order to send
spaces as keepalives, the socket must be used instead.