The given query string could not be processed. Query strings for this resource must be encoded with 'utf8'.In addition, the custom error page failed: AttributeError: 'Response' object has no attribute 'i18n'