Adding explicit casts for 64-bit to 32-bit conversions.
Making convFail visible only if HAVE_WORKING_ICONV is defined.
It’s unused otherwise.