Ensure event is serializable.