Allow U+00000001 (8-digit codepoints)

It was intended to allow 8-digit codepoints (even though the highest
valid codepoint is actually 6 digits) but there was an off-by-one error
in the if condition.