Remove trailing dot from the fqdn if there is one.