fixes UTF-8 issue while rendering thumbs for mini cart
fixes sql exception in modules which occur with Joomla 3.2