string::raw::from_buf and vec::raw::from_buf deprecated

Fixes these deprecation warnings:

warning: use of deprecated item: renamed to String::from_raw_buf, #[warn(deprecated)] on by default
warning: use of deprecated item: renamed to Vec::from_raw_buf, #[warn(deprecated)] on by default