Parse input as potentially a URL