Use well-formed URIs for `FileObject#toURI`
The implementation doesn't support converting `URI`s for `FileObject`s
to `Path`s and doing IO on them, but this at least makes them well-formed,
and avoids errors like:
```
jshell> Paths.get(URI.create("file://foo"))
| Exception java.lang.IllegalArgumentException: URI has an authority component
| at UnixUriUtils.fromUri (UnixUriUtils.java:54)
| at UnixFileSystemProvider.getPath (UnixFileSystemProvider.java:102)
| at Path.of (Path.java:203)
| at Paths.get (Paths.java:98)
| at (#8:1)
```
https://github.com/micronaut-projects/micronaut-core/issues/7257
PiperOrigin-RevId: 445683352
2 files changed