[#9631] Fix image preview with special chars in filename

Fixes errors when loading images preview with "&", "+" and other url signs.

Signed-off-by: Indomian <egor.b@fabricasaitov.ru>
(cherry picked from commit 22b4b3f0f01b1baaad3fc12a1eda4bc09ae492f6)