Correctly handle 0 in utf8_convert_encoding() (see #7403)