Slug-ify uploaded file names

Should resolve #778