file:// URIs are uriencoded, and will thus conserve the encoding of the file paths. We cannot just convert file paths in other encodings to UTF-8, because then we won't find the files we point to.