Use str::raw::from_buf rather than the deprecated str::raw::from_c_str.