fix base64 encoding for big files