Console errors are seen when saving enwiki > cremation.
Appears related to funky percent encoding with some image URLs for that article.
Here's one such invalid image file url:
https://en.m.wikipedia.org/wiki/File:2015-03-09Bagmati_River,_Pashupatinath,_Nepal_%E3%83%90%E3%82%B0%E3%83%9E%E3%83%86%E3%82%A3%E5%B7%9D%E3%81%A8%E3%83%91%E3%82%B7%E3%83%A5%E3%83%91%E3%83%86%E3%82%A3%E3%83%8A%E3%83%BC%E3%83%88%E7%81%AB%E8%91%AC%E5%A0%B4DSCF6170%E2%98%86%E5%BD%A1.JPG
Removing percent encoding in WMFImageTag.m makes the urls work. The one above resolves to this:
https://en.m.wikipedia.org/wiki/File:2015-03-09Bagmati_River,_Pashupatinath,_Nepal_バグマティ川とパシュパティナート火葬場DSCF6170☆彡.JPG
...but migrateLegacyImagesInArticle fails because of nulls... so we may need to poke around a bit. Joe suggested considering maybe hashing the urls to figure out the local filenames.