Make sure that 99999999999 (eleven nines) is not rejected...

... since we've been shipping such policy for long time.

(cherry picked from commit 7563bf1b05d7e5a0b1200afe0de9050878beee17)
sscanf("%jd") is not ANSI C and we do not provide a libcompat wrapper yet. So use "%lld".

(cherry picked from commit 40f2211fd402684e4ab5cd6e5ccfba1e8a5b2377)