`mb_split` will fail if `$pattern` or `$string` contains byte sequences not valid for `mb_regex_encoding()`. Convert both strings and set regex encoding before calling `mb_split()` if needed. Fixes smarty-php#549