A little better test for file extensions on .toUrl