Avoid stringifying bytes value for basic authentication.

This was causing the basic authentication header to look like

    Authorization: Basic b'Zm9vOmJhcg=='

instead of

    Authorization: Basic Zm9vOmJhcg==

because bytes were being formatted as a string.