now we detect encoding of files using file command