Rename encode state.
Rename decode state.