encode stderr using base64 encoding