convert post urls to slugs