return the underlying write() result from connection._send when encryption is enabled

fixes #133