Fix safeSlugname

See reference https://github.com/yeoman/generator-node/pull/33
Merge pull request #6 from huei90/patch-1

Fix safeSlugname