Make sure `\0` isn’t followed by a digit, not even if it’s a non-octal digit

This makes sure the output is fully spec-compliant, and avoids potential issues in strict mode in Internet Explorer/Chakra, Safari/JavaScriptCore, and Firefox/SpiderMonkey.

Closes #11.