Convert chunks to Buffer to use copy