if (APP_NAME != null) {
char [] chars = new char [APP_NAME.length ()];
APP_NAME.getChars (0, chars.length, chars, 0);
int cfstring = OS.CFStringCreateWithCharacters (OS.kCFAllocatorDefault, chars, chars.length);
if (cfstring != 0) {
CFRange range = new CFRange ();
range.length = chars.length;
int encoding = OS.CFStringGetSystemEncoding ();
int [] size = new int [1];
int numChars = OS.CFStringGetBytes (cfstring, range, encoding, (byte) '?', true, null, 0, size);
if (numChars != 0) {