lib/core/file: use Bytes in file copy (or else binary copy fail)