Fixed bug (incomplete encode feature).