fixing header k/v splitting bugs, came up when parsing cookies (which tend to have a lot of k/v pairs in them). fixed by limiting to two pieces returned by the split. also, trimming whitespace around header plist key names.