Revert "encode as utf-8"

This reverts commit a1f8af83b3206c940b9dc4b9d8b83e5ae971d45b.