Fix issue-8: warning: [deprecation] toURL() in File has been deprecated.

Fix warning by prepending toURI(). to occurences of toURL().
