Fix replacement of quotes