HUE-2101 [fb] Copying a file trims the last chunk