detecting encoding of files using file command?