Currently, we generate a data-uri for iCal which can be used to download an .ics file.
But if we want to attach an .ics file to emails, we need to generate it directly (otherwise the url encoding for the data-uri borks the calendar display when imported into a calendar.

Currently, we generate a data-uri for iCal which can be used to download an .ics file.
But if we want to attach an .ics file to emails, we need to generate it directly (otherwise the url encoding for the data-uri borks the calendar display when imported into a calendar.