fix to specify valid output encoding
Merge pull request #5 from gfx/output-encode-utf8

fix to specify valid output encoding