cept a much wider range of characters. This function aims to mimic how macOS translates a friendly name to the LocalHostName. z