Update slug_generator.rb

Fix generator with custom to_param