replace take_unwrap() by take().unwrap()

The former has been deprecated.