- struct url *url_parsed = url_parse (*t, &url_err, NULL, false);
+ /* Need to do a new struct iri every time, because
+ * retrieve_url may modify it in some circumstances,
+ * currently. */
+ struct iri *iri = iri_new ();
+ struct url *url_parsed = url_parse (*t, &url_err, iri, true);
+
+ set_uri_encoding (iri, opt.locale, true);