Fix bad URL to File conversion