optimize seems_utf8 (refs #4304)
encode args for resizeimg.php (refs #4304)
more verification before resizing image (refs #4304)