String utf8ToHex(String input) { List<int> bytes = utf8.encode(input); return bytes .map((byte) => byte.toRadixString(16).padLeft(2, '0')) .join() .toUpperCase(); }