Trim headers and values when reading.