Fix UTF8/unicode handling

Finally get around to properly deparsing UTF8 headers and stop messing
up all names that contain non-ascii characters.