Deal with null characters in the output of the metadata indexer
They cause the indexer to crash because postgresql does not allow null characters in text fields
https://sentry.softwareheritage.org/share/issue/fe0e83d761524a32b72de59985454a25/
Migrated from T4277 (view on Phabricator)