The library Slugger can generate slugs from given strings that can be used in URLs or file names.
Implementation of the TJSON Spec from www.tjson.org.