events: Don't crash on events named __proto__

This prefixes all event names internally with 'ev'.