CFStringGetCStringPtr() sometimes returns null - fix by using CFStringGetCString()

...verflow.com/questions/9166291/converting-a-cfstringref-to-char/9166500#9166500)