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

Second attempt for https://github.com/TryGhost/Ghost/pull/2050. Sorry for the confusion, I'm having trouble using Github correctly :sweat_smile:

`grunt test-integration` passed successfully. Took me a lot longer to figure out how this works, than anticipated :smile:

I hope this is all right now.