Fix for integer overflow error and old mac 64-bit clients (completely broken by 5.0.4)
Integers over 2^31 into string.format() are a hard fail in 5.0.4
------------------------------------------------------------------------