i'm not against this refactor as a function, but keeping it as a CFStringRef is a PITA overall, easier to work with straight char buffers.