d2v: fix to iconv linkage and illegal sequence ignorance