Fixed non UTF-8 paths handling