Revert "Optimized an expensive call to strlen to a call to log10 (for computing the number of digits of an integer)."
It is actually slower than the strlen thing on my amd64 machine. Computers are weird sometimes.
This reverts commit 299837ec6d2a36ca7947ca34621b0e79818ac4c9.