Using the LLVM path and directory system

Hey guys,

I have written a small code generator that we are using, quite
happily, based on clang. I need to make its output more robust and
thus I would like to create the destination directories if they don't
exist. I am looking through llvm/support/PathV2 and it has a
create_directories function call *but* it takes a twine and I start
with paths.

Is there an llvm-ish way to go from my string paths to twines? It
wasn't clear to me how to do this without doing the manual and
possibly platform specific string parsing myself.