sampoyigi Would be good to know exactly where/what the issue is as replacing the function everywhere might have unwanted effect on other parts of the system.
sampoyigi Thank you, that helped. I've replaced substr with codeigniter character_limiter(), since the substr function is mostly used in the code to limit characters from database data and the multibyte encoding issue would likely come from database data.
sampoyigi https://github.com/tastyigniter/TastyIgniter/commit/b80c248e397c24bc11ddec5f7a89b7c70b96ce80