Adding the encoding control so it makes possible to use a ResourceBundle with a custom encoding