The `str_replace` has been retained as part of the original code.

Do you want it to be replaced with `mb_str_replace` or something?