cleanup, make CUICFStringToCString utility function