- ensure that header are sent as byte string, otherwise httplib will
  fail