Fix unicode bug introduced by new chunks implementation