added slugify function

I was having problems with some of my post titles with non alphanumeric characters, so I stripped em out