apply patch for #66; str headers, not bytes