Fix args to Cookie and wrap with base64