Encodes the string as UTF-8.
string
Uint8List encode(String string) { return const Utf8Encoder().convert(string); }