fn windows_unsafe(segment: &str) -> bool
Whether Windows would take segment for something other than the file it names: a device (NUL, COM1.txt), or a name it trims (a.bob., a.bob ) and so opens another file under.
segment
NUL
COM1.txt
a.bob.
a.bob