Handle hyphens in class names

For the purposes of class names, handle hyphens as if they were underscores
(hyphens are not valid in Ruby for this purpose).

Fixes 12-oz/pliny#90.