Fix bug in converting URI strings to Name components.