public static byte[] StringToByteArray(string str) { return System.Text.Encoding.UTF8.GetBytes(str); }