private string UTF8encode(string str) { byte[] bytes = Encoding.Default.GetBytes(str); return Encoding.UTF8.GetString(bytes); }