An explanation of why is the str_replace is necessary would be good. I would think that `check_plain()` was sufficient.