support directory path with multibyte character

I am not the one who write the code,

just googling and found his solution actually works and hope it can be accepted into official,

```
中文路径支持
chinese path support
```