Java String to Byte Array UTF8

String s = "some text here";
byte[] b = s.getBytes(StandardCharsets.UTF_8);
Nimorum