LILY-341: Fix partially encoded headers