Prevent double slashes in file paths.