Fixed uri_to_iri() bug with encoded hashes

Also improved test_url_request_descriptors_query_quoting() unit test