remove extraneous escape characters