Allow for hyphens in factory names

I'd like to be able to use a hyphen in factory names. If there's no reason to disallow them, here's a pull request that does just that.

Thanks!