Fix the remaining case in which getCString:maxLength:encoding is not checked for returning NO before using the result.
If the appName can’t be interpreted as UTF8, use “<UnnamedApp>” as the appName.
Fixed whitespace to match surrounding code
Merge pull request #202 from evands/static-analysis-security-fixes

A fix from a security static analysis