use setEncoding
remove unused deps
Merge pull request #1 from mafintosh/patch-1

use setEncoding