Ensure that filename fallback out of an url is properly sanitized
Otherwise, filename may end up being too long [1]
OSError: [Errno 36] File name too long:
Related to swh/infra/sysadm-environment#3468 (closed)
Migrated from D6292 (view on Phabricator)