We can solve this right now actually. If we have rb_intern use rb_intern2, we can pass down the length here to State::symbol(const char* str, size_t len). For rb_intern we'd just use strlen then.