extract headers now cleaning non utf-8 chars

Forked in MindSumo repo and fixed in that fork.