@classmethod<EOL><INDENT>def _encode(cls, value):<DEDENT>
value = json.dumps(value)<EOL>return cls._ENC_RE.sub(lambda x: '<STR_LIT>' % ord(x.group(<NUM_LIT:0>)), value)<EOL>
Encode the given value, taking care of '%' and '/'.