Added a function that can use /usr/bin/file to guess the encoding
Merge branch 'master' of github.com:xyproto/setconf