Encodes input.
input
The input is encoded as if by encoder.convert.
encoder.convert
List<int> encode(String input) => encoder.convert(input);