BindDnsServer strips invalid characters from domain names

As per RFCs 952 and 1123.
I think `trimFrom` is preferable to `trimLeadingFrom` because names may not end with a hyphen.