fix bug for send_file (binary file)