Automatically turn a URL into a path

If a URL is supplied for a path, turn it into a path.