code: def strToUtf8(value):
      '''
      :type value: ``str``
      :param value: value to encode
      '''
      kassert.is_of_types(value, str)
      if sys.version_info < (3,):
          return ''.join([unichr(ord(x)) for x in value])
      return valuf strToUtf8(value):
      '''
      :type value: ``str``
      :param value: value to encode
      '''
      kassert.is_of_types(value, str)
      if sys.version_info < (3,):
          return ''.join([unichr(ord(x)) for x in value])
      return value
docs: :type value: ``str``
      :param value: value to encode