Permit dot-less domain names

Fixes #523
Merge pull request #680 from staticshock/dotless-domains

Permit dot-less domain names