@Serhiy please comment the implications / limitations of the fallback on Windows.
Is it that scandir cannot handle bytes argument only?
If argument is unicode, but response set contains bytes paths, will that work?