Introduce encoding to config.
Use encoding from config.