Add check for symmetric encoding/decoding.