also consume invalid encoding