Replace deprecated string::raw::from_buf() with String::from_raw_buf