Get the binary size of a string
int getBinarySize(String str) { ArgumentError.checkNotNull(str); return utf8.encode(str).length; }