I think it's a bit overkill to make this function a helper, it's just a wrapper for several str_replace calls.

Can't it just call https://github.com/cakephp/cakephp/blob/master/lib/Cake/Utility/Debugger.php#L352 ?