fixed a bug where slashes weren't escaped