Making legacy inline images Drupal 8 managed files

I’ve upgraded a Drupal 7 site to Drupal 8 which has a large amount of content that has images inserted into the rich text editor using the IMCE module.

These images therefore, haven’t been migrated into Drupal 8 as managed files and they don’t have a uuid.

My question; is it possible to scan the content for inline images that don’t have a uuid and make give them a uuid and make them managed files, so that they can then be post processed by modules such as image_resize_filter?

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/21/feed