Improve _normalize_href