code: def _slugify(text, delim=u'-'):
      
      result = []
      for word in _punct_re.split(text.lower()):
          word = word.encode('utf-8')
          if word:
              result.append(word)
      slugified = delim.join([i.decode('utf-8') for i in result])
      return re.sub('[^a-zA-Z0-9\\s\\-]{1}', replace_char, slugified).lower()
docs: Generates an ASCII-only slug.