Changed way of loading config file

Added encoding way to load config file to ensure UTF-8