rwrap: Handle trailing dot in dns names.