def _check(self, terms):
for t in terms:<EOL><INDENT>try:<EOL><INDENT>_ = urllib.parse.quote(six.text_type(t).encode('<STR_LIT:utf8>'))<EOL><DEDENT>except:<EOL><INDENT>self.logger.error('<STR_LIT>'.format(t))<EOL>self.logger.error('<STR_LIT>')<EOL>raise EncodingError<EOL><DEDENT><DEDENT>
Check terms do not contain unknown characters