Make replace list receive an encoding of the list and reading encoding from configuration file