[uri] Make URI parsing handle IPv6 addresses