Base64-encode headings to avoid problems with line breaks.