Only compress data, if it is uncompressed

If "Content-Encoding" header is already set, it means that a parent
filter has delivered encoded data, and we should not re-compress the
data.