Fixed a couple iconv loops to properly handle incomplete chars