Allow dashes in class names for HHVM support, fixes #2967