Converts a string to a slug by downcasing, replacing spaces and slashes with hyphens, and stripping other non-alphanumeric characters.
slug('Hello World') → 'hello-world' slug('Hello/World') → 'hello-world' slug('Foo! @Bar#') → 'foo-bar'