This article seems to assume paths will be valid UTF-8, which isn't true on either Linux certainly, and Windows as far as I know.<p>of course we could say "paths must be valid UTF-8 for this program to work" (quite a few Rust programs do require this, as they store paths in standard Rust strings, which themselves must be valid UTF-8), but if your concern is dodgy paths breaking things, you probably need to check for that somewhere?