Replace needed \'s.