public static Stream ToStream(this string str) { return new MemoryStream(Encoding.UTF8.GetBytes(str)); }