Encodes a string value for the given key or id.
void encodeString(String key, String value, {int? id});