@theducks - well I hope it fixed them correctly, lol. It is a function that should only ever need to be run on your library once - well unless Kovid keeps tweaking the allowable filename characters.
As for Windows/Linux same library issues, care factor too low on that I'm afraid

. IIRC calibre is not supported to run in that shared configuration for precisely the reason of potential path/casing issues. Regardless of that, so long as the function above works properly for Windows users that is good enough for me