code: def transform(self, text):
          
          if type(text) is not unicode:
              text = unicode(text, 'utf-8')
          return text
docs: :param unicode|str text: input text
          :type text: unicode|str
  
          :return: transformed text
          :rtype: unicode