remove the unnecessary .toRaw conversion when working with headers