support headers passed in as a string rather than an array