normalize carriage returns