'Override username/password serialization to allow unicode.
See https://github.com/jakubroztocil/httpie/issues/212'

def __call__(self, r):

    r.headers['Authorization'] = type(self).make_header(self.username, self.password).encode('latin1')
    return r
