Convert string to byte array
Uint8List stringToBytesUtf8(String str) { return Uint8List.fromList(utf8.encode(str)); }