[sse] add encoding to event stream