Sanitizing existing media library paths and page links from foreign characters

just a guess: maybe a thumbnail regenerator plugin will work in combination your sanitize plugin.

like this regenerate-thumbnails or this force-regenerate-thumbnails

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)