Sanitize the incoming events.