optimize seems_utf8 (refs #4204)
encode args for resizeimg.php (refs #4204)
more verification before resizing image (refs #4204)
Merge pull request #1020 from Eric-Brison/3.2-I4204

more verification before resizing image (closes #4204)