pub fn host_to_bytes(host: &OsStr) -> Result<Vec<u8>>
Convert an &OsStr produced by Windows-style APIs into a Cow<[u8]> which is either plain UTF-8 or an ARF encoding.
&OsStr
Cow<[u8]>