string ke byte array java utf-8

String someText = "text";
byte[] message = someText.getBytes(StandardCharsets.UTF_8);
Worried Willet