public function offsetGet($offset)
{
$offset = (int) $offset;
$length = $this->length();
if ($offset >= 0 && $length <= $offset || $length < abs($offset)) {
throw new OutOfBoundsException('No character exists at the index');
}
return \mb_substr($this->str, $offset, 1, $this->encoding);
}