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

Different approach. Sometimes those dashes are used without spaces between words. Replacing them with '' would result in joining two words in the slug.

Example:
> *For ages 3–5*
> *A flock of sparrows—some of them juveniles—alighted and *sang.