use slugify to generate post filename (inhaled from http://flask.pocoo.org/snippets/5/)