If the appName can’t be interpreted as UTF8, use “<UnnamedApp>” as the appName.