Use AsRef<[u8]> for paths, instead of &str
As mentioned in redox-os/newlib#7.
This is a breaking change, since some things that implicitly convert to str
will stop working (I noticed this in testing, since CStr.to_string_lossy()
returns Cow<str>
). I think that's unavoidable though.