Fix decode error when using wsgi container and enter erroneous url.