Improved setext header insertion to support wide characters

Thanks to Makoto Motohashi for the patch.