ape: fix decoding of large value in 3.91-3.98