Add event_source_encoder

Signed-off-by: chatgris <julien@stormz.me>
Merge pull request #7 from chatgris/event_source_encoder

Add event_source_encoder