Есть: return vB_String::convertUnicodeCharToCharset(hexdec($matches[1], $charset));
Нужно: return
vB_String::convertUnicodeCharToCharset(hexdec($matches[1]), $charset);