[IMP] use url_encode when building url query string

I have no idea why I originall implemented that crap via string munging.
[FIX] correctly handle invalid max_width/max_height passed to website._image
Merge pull request #183 from odoo-dev/urlencodify

Improve handling of website image fields