Remove trailing whitespace and DOS line endings