xls: fix export of headers and footers.