Replace str::raw::from_c_str() with string::raw::from_buf()