Ensure spurious line ending characters on records are stripped away