in reply to How can I tell if a string contains binary data or plain-old text?
Or run the file thru the system command "file".