encode method
This is called to encode the content
Implementation
@override
Future<xmtp.EncodedContent> encode(String decoded) async =>
xmtp.EncodedContent(
type: contentTypeText,
parameters: {'encoding': defaultEncoding},
content: utf8.encode(decoded),
);