NUL Terminate the buffer string outside the ssl_socket_read() function.

Looks like this will bring some flexibility.

Signed-off-by: Thiago Farina <tfarina@chromium.org>