Converts the given string to a URL slug.

def slugify(s):
    """
    Converts the given string to a URL slug.
    """
    s = strip_accents(s.replace("'", '').lower())
    return re.sub('[^a-z0-9]+', ' ', s).strip().replace(' ', '-')