In the deposit, the `swh_anchor_id` is in the new format:
```
swh:1:dir:<hash>;?origin=<origin>;visit=<snp-hash>;...
```
When, previously in the format:
```
swh:1:dir:<hash>;?origin=<origin>
```
This adapts the extraction to take into account the new format and provides the
`end` bound the `data.slice` call.
Related to T2398
Related to T2409