This will accept every path that is legal in filesystems such as extX, reiserfs.
It discards only the path names containing the NUL or double (or more) slashes. Everything else according to Unix spec should be legal (I'm suprised with this outcome too).