Use File.toURI.toURL

On windows URL("file://{}") won't work