Django format: document undefined behavior of atoi in valid()
...and reduce risk of triggering that undefined behavior.

But valid() is still far from perfect.