Bugfix: Intermediate encoding was not triggered in batch mode.