There's absolutely no need to do that. There's no need to escape anything and using $eval(something, 1) is exactly the same as using something alone. Neither evaluation nor blindly escaping/halting will fix this because it's clearly not the source of the problem.
Most likely some part of the code uses /scon or /scid, but the only way to be sure is for the OP to show the appropriate code he is using.