Fix symbol construction bug that would allow hyphens to pass into symbol names