Make path stripping optional in `.extract()`

Fixes #664.