Fixes #7164: Cannot create a domain that starts or ends with '.'

@orrabin, this strips dots from all fields. Should it just be from the `name` field?