CouchDB fails on base64 decode if you supply username/pass in URI and headers