http_interface: more robust urljoin