code: public static int unicode(EvaluationContext ctx, Object text) {
          String _text = Conversions.toString(text, ctx);
          if (_text.length() == 0) {
              throw new RuntimeException("Text can't be empty");
          }
          return (int) _text.charAt(0);
      }
docs: Returns a numeric code for the first character in a text string