Fix double nonce increase bug.
Fix off-by-one bug in the number of splits during packet processing.

Other languages like Python split n times. Java splits at most n-1 times
→ limit number of resultant strings, not the number of splits.
Debugging aids.