Fix safeSlugname

See reference https://github.com/yeoman/generator-node/pull/33