FileInfo extracts encoding from strings and files using the wonderful Unix `file` command.