Generics help: how to accept anything that can become a PathBuf

This is a fairly common refrain; it's tough because there's a lot of them.