fix bug with escaping ' and "