Reposition the call to setup_iconv() so that it gets called only once