normalize resource urls to remove the "file" protocol