Added gsub() to name to prevent error when snippet file names with dashes are rendered

For Issue #140

I'm not entirely sure if this is the optimal solution to this problem.  Let me know if you think there are better solutions.

Also, there was a minor typo that I fixed in README in testing section.

Thanks!