@davidc
In my case it helped to remove /usr/local/bin/iconv as well, in addition to removing the libraries mentioned (/usr/local/include/{libcharset.h,localcharset.h,iconv.h}). Not sure if necessary, but running "sudo ldconfig" would not hurt as well.