docs/persistent-identifiers: Add guidelines for fixing invalid SWHIDs.
This is going to be implemented in swh-web, so we should codify this, for implementations that want to be 'quirk-compatible' with ours.
As agreed in swh-web#3234 (closed).
Migrated from D5485 (view on Phabricator)