Change leading 0 function to use C-based sprintf

Removes the need for a conditional statement and calls into faster C code.
Merge pull request #13 from jasonpbecker/patch-1

Change leading 0 function to use C-based sprintf