adapters.http.util: fix string formatting on Py3k