encoding can be set in config file