Slugify slugs for feed elements submitted via API (bug 1029863)

r? @ngokevin
Not used.