Basic auth requires base64 encoding of credentials

@pbadenski
@maxfliri