MemoryStream rtfTx = new MemoryStream();var bs = rtfTx.ToArray(); string s = Encoding.UTF8.GetString(bs);