code: public static byte[] toByteArray(String string) {
      EnsureUtil.ensureActiveCommandContext("StringUtil.toByteArray");
      ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
      return toByteArray(string, processEngineConfiguration.getProcessEngine());
    }
docs: Gets the bytes from a string using the current process engine's default charset
  
  @param string the string to get the bytes form
  @return the byte array