Convert line endings from Windows to Unix.
Remove trailing slashes.