saving text files right, but binary files not.