Transform to single char encoding.
Add cleanup.