Fix the basic_auth behavior

HTTP header should be in binary rather than strings.