Add function str::from_bytes_slice_opt()

Variant of from_bytes_slice() that returns an Option instead of failing.