Fix dash-to-triple-hyphen replacement in generateSlug function.

If you use a [common unicode dash](https://en.wikipedia.org/wiki/Dash#Common_dashes) in your post title, your slug/url will contain three hyphens. This looks rather strange. This commit replaces those with one hyphen instead.