They are binary files and should be transferred as such with FTP. Transferring them as text will corrupt them. How are you transferring the files? Berkeley DB files have holes; some naive programs won't handle files with holes. No FTP transfer process can restore the holes but that shouldn't corrupt the files, just make them use more space on disk.