ensure PSGI response headers are in the right format