sw-collector: Cast chunk length to int when printing as string