Permit dot-less domain names

Fixes #523