Pipe character on Safari .webloc file name
When I drag and drop a URL from the Safari address bar to the desktop, or to any folder on Mac, to create a .webloc file, Safari creates the file with pipe characters separating some parts of the title. This happens in most cases. The same happens when printing a page from Safari to a PDF.
The pipe character on the file name causes a lot of troubles, e.g., when synchronizing with OneDrive, sharing with Windows, etc. I have to manually rename the files to remove the pipe character.
Is there a way to fix this so that, perhaps instead of using pipe it uses a dash character?
I'm using Safari Version 14.0.3 (16610.4.3.1.7) on MacOS Big Sur v11.2.3.
Thank you.
MacBook Pro 13″, macOS 11.2