Changed .toURL() to .toURI().toURL() (deprecated method, but meh)