Cleanup.
encode.