Send basic auth in utf8.

Implies circumventing QAuthenticator and handling
authentication manually again.

Fixes #941