remove trailing empty record from CSV files that end with a CRLF