pub fn str_to_cstring(s: &str) -> Result<CString, NulError>
Convert a Rust &str to a C-compatible string