Fix crash when handling headers or footers with non-ascii characters, reported by  Grzegorz Adam Hankiewicz.
Fix crash when handling headers or footers with non-ascii characters, reported by 
Grzegorz Adam Hankiewicz.




rafaelmartins/rst2pdf,rafaelmartins/rst2pdf