Fixed bug relating to multibyte characters when parsing the directory