Fixes #168: incorrect encoding in events