fix bug 819885 - Don't allow leading zeros

https://bugzilla.mozilla.org/show_bug.cgi?id=819885