Cast chunk to Buffer as required by Buffer.concat