weechat: fix iconv detection

Change the way cmake determines whether libiconv is available, since
the existing check is broken and makes cmake think that libiconv
isn't available.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>