calendarProvider: improve event file repairing function - now also checks and fixes text fields that are too big.
calendarProvider: ensure text fields are always null-terminated when parsing events.