String mbCharAt(String str, int i) { if (i < 0 || i >= str.runes.length) { return ''; } return String.fromCharCode(str.runes.elementAt(i)); }