really fix basic auth
whitespaces and escape characters
monkeypatch signature