Handle base64 encoding and decoding inside CouchDB, eg. in list functions.