Strip encoding declaration in headings for Python 3.