reject slugs with invalid encodings; upgrade rails; add guard