being more defensive about how we put together the URI value before hashing