Fixed missed encode call for webworkers