Clean up formatting for automated extraction of events.