Encode header for X-Accel-Redirect
See https://github.com/benoitc/gunicorn/issues/1448 and https://github.com/readthedocs/readthedocs.org/pull/5024
Not sure if correct, but seems to fix https://iffgit.fz-juelich.de/weber/data-management-system/-/issues/105