text files are uploading. binary files get corrupted by the binary_to_list conversion