workaround bug in django (newlines in http headers, https://code.djangoproject.com...