Eliminate unnecessary str_copy() in URI parsing.