Fix a few issues with creating ical content for export.