fixing bug in escaping of doublequotes