def text_to_data(self, text, elt, ps):
if self.strip: text = text.strip()<EOL>if self.pyclass is not None:<EOL><INDENT>return self.pyclass(text.encode(UNICODE_ENCODING))<EOL><DEDENT>return text.encode(UNICODE_ENCODING)<EOL>
convert text into typecode specific data.
        Encode all strings as UTF-8, which will be type 'str'
        not 'unicode'