PHP multibyte string functions are slow(er)
A reminder for myself: Only use mb_ functions in PHP when necessary, as they are significantly slower than their non-multibyte alternatives.
For example, replacing mb_substr with substr (where multibyte is not needed) resulted in 3x - 6x faster execution.