escape certain characters before passing to eval (\, $, and `)