detecting encoding of files using file command? -> arguments properly passed