lib: Move get_iconv_handle() call down