when encoding, ignore keys that are not length 2