fixes icalendar line break and chinese issue.