If they were all mixed up and I would have had to write a query that detects and deletes entries with // in the path, that would have become a bit more complicated
A search&replace query is not that difficult, but you do need to know what you are doing, and do the query for all affected tables.