Add URL encoding to image resize in catalog/model/tool/image.php