fix overwrite of ENCODING var

`ini_set` returns the old value from php config. That caused the hive var `ENCODING` to be left unchanged after setting something like `ISO-8859-1` to send and render SMTP mails correctly.