Note `File.toURL()` is deprecated and known to cause issues (though I don't quite recall which ones). The recommended way to do this is through `File.toURI().toURL()`