Update format for SRV hostnames.

I can't find it documented anywhere, but drop dots from
hostnames in SRV records and precede each label with its
length.