Normalize line endings to LF and fix whitespace.