Fix Utility::GetFQDN() on OS X

fixes #7495