The directory name string passed into libobs functions needs to be converted into a 8-bit-based encoding (e.g., UTF-8) to avoid mangling of characters and encoding issues particularly on Windows systems which use UTF-16 for file names.