fix for local file url conversion