Wide character fix for Directory.cpp