Added support for plain text headers and footers.