Add line folding and missing fields to pass ICS validation.