Slugalizer

Slugalizer is a one-method Ruby library that can slugalize (or slugify) strings, like this:

Slugalizer.slugalize("Åh, räksmörgåsar!")
# => "ah-raksmorgasar" 

Download

slugalizer.rb

Update #1

Henrik has a fork of Slugalizer on GitHub.

Update #2

ActiveSupport’s Inflector has parameterize and transliterate methods now. You can probably use them instead.