fix multiple iconv bugs reading utf-16/32 and wchar_t