renamed str::from_slice to str::to_owned