use parameterize to convert the string

this is more efficient, and works on more cases. parameterize was introduced in rails 2.3.2
Merge pull request #2 from DonGiulio/patch-1

use parameterize to convert the string