Fixes #8045 - Validate domain names per RFC 1035

Domain names will be saved to db in punycoded form, and displayed as
unicode.