- fix endless loop in http_build_url() with urls like "/.foo"