Replace deprecated `std::string::raw::from_buf` with `String::from_raw_buf`