You can update `path_to_dataref` to take an MCStringRef, and use `MCAutoStringRefAsCFString` to proceed the conversion within path_to_dataref