Handle IllegalArgumentException for invalid URLs

This is particularly useful for jar-in-jar URLs beginning with rsrc:
which cause FileUtils.urlToFile to throw IllegalArgumentException.