Make charset configurable