Fix server-sent event handling for multiline event data

When using the server-sent event feature, if the event string contains a line terminator character, only the first line is received by the client. When the event contains multiple lines, every line should start with `data: `.