Encodes a String
BOM will not be written
@override List<int> encode(String input) => encoder.convert(input);