using System.Text;

string test = "Hello World";
byte[] myByteArray = Encoding.UTF8.GetBytes(testJ);