Fix port for iconv in base