renamed str/vec::from_slice to str/vec::to_owned. #3356

Fix for #3356