Oops, seems like Utils::readInt() is reading an unsigned long because of PHP silliness