fix header value parsing behavior for folded lines and make header values always be arrays (of strings)