Most "sluggifiers" (methods for converting to friendly-url type names) tend to do the following:
- Strip everything except whitespace, dashes, underscores, and alphanumerics.
- (Optional) Remove "common words" (the, a, an, of, et cetera).
- Replace spaces and underscores with dashes.
- (Optional) Convert to lowercase.
As far as I know, StackOverflow's sluggifier does #1, #3, and #4, but not #2.