fix encoding header