fixes UTF-8 encoding issue for the cart thumbs
fixes sql exception in modules
fixes issue with the form validation which validates fields even if they are disabled (introduced with J2.5.16)