Fix #47 - basic authentication with big passwords

Simple fix for #47, use the `base64.b64encode` function which doesn't produce multiline base64 output.