copyFileWithHeader: use binary Handles