the intention was to make this code more generic and usable by for example puppetdb-terminus. the explicit to_s call can be skipped.

But even for puppetdb-terminus it might be undesirable with the fallback to the generic puppet srv record, so not entirely sure it would be useful even with this change.