Support character encoding
Feature complete for v0.1.0