Decode headers if encoded