private static void Write(Stream stream, string raw) { var data = Encoding.Default.GetBytes(raw); stream.Write(data, 0, data.Length); }