private static void validateNoZeroBytes(String id) {
        for (int i = 0; i < id.length(); i++) {
            if (id.codePointAt(i) == 0) {
                throw new IllegalArgumentException("Unparseable id '" + id + "': Contains illegal zero byte code point");
            }
        }
    }
Creates a IdString based on the given serialized document id string.

The document id string can not contain 0x0 byte characters.
document/src/main/java/com/yahoo/document/idstring/IdString.java