remove dud encoding headers