Encode all documents in base64