Remove carriage return from event name

An extra `\r` character was not being removed when parsing the event
name. This causes that clients using `source.on 'event_name'` are not
being notified of the event.