fixed unit tests when iconv is not available