Stop using CFStringGetCStringPtr()

CFStringGetCStringPtr() gives us a char* with no length, which means
we'll truncate at the first NUL byte.