Worker error encoding fix