Fix url_slug generation regression.

Must only escape strings between each '/' and not the ending extension dot.