Encodes input.
input
The input is encoded as if by encoder.convert.
encoder.convert
Uint8List encode(String source) => encoder.convert(source);