Migrate ghc-pkg to use OsPath
Closes #26960 (closed)
The idea is to migrate ghc-pkg to use OsPath and file-io which use UNC paths correctly.
As a minor plus, the memory usage will be a tiny bit better due to OsPath :)
Similarly to GHC, we still throw errors when OsPath can't be encoded/decoded. I think this is not worse than the status-quo.
Edited by Hannes Siebenhandl