Update file_encrypted function

It's now very much the same as before. Also fix bug in GTK GUI that
swapped enc/decrypting flag.