Handle multiline headers (thanks to Christian Schmidt)