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