Added encoding to config