Handle enum member strings with hyphen and period characters.

Reviewer: @rlane @jnealtowns