Replace all non-alphanumeric characters
"foo bar".downcase.gsub(/[^\p{Alnum}]/, '-') # Output: foo-bar