sse: Trim trailing newline from the received data.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>