Store strings and stream data in base64 to avoid invalid character codes in xml