set encoding when stdout is redirected
Merge branch 'master' of github.com:andreasvc/disco-dop