util: fix crash converting an invalid future date to string
Post-2038 timestamps cannot be handled on 32-bit architectures. Clamp
such dates to the maximum 32-bit timestamp.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.