UTF-8-encodes input and compresses it.
input
Uint8List encodeString(String input) { return encodeBytes(Uint8List.fromList(utf8.encode(input))); }