folly/Conv.h: estimateSpaceNeeded: avoid undefined behavior