Revert changes in method encode too.