@classmethod<EOL><INDENT>def encode(cls, value):<DEDENT>
coerced = unicode(value)<EOL>if coerced == value and cls.PATTERN.match(coerced):<EOL><INDENT>return coerced.encode(cls._encoding)<EOL><DEDENT>raise InvalidValue('<STR_LIT>')<EOL>
take a list of strings and turn it into utf-8 byte-string

:param value:
:return: