Fix a crash if the vevent contained non-ascii characters (e.g. in the DESCRIPTION field):
Traceback (most recent call last):
File "/home/adam/bin/maildir-to-ics", line 898, in <module>
ret = main(sys.argv)
File "/home/adam/bin/maildir-to-ics", line 876, in main
dest_ics, limit_past, limit_future)
File "/home/adam/bin/maildir-to-ics", line 578, in write_ics_from_dir
fp.write(buf)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 2912: ordinal not in range(128)
Fix a crash if the vevent contained non-ascii characters (e.g. in the
DESCRIPTION
field):