Header encoding fixed