remove invalid content-encoding headers (fix #580)