Added support for charset to be set in config file. Use the following key: charset