remove duplicated changes entry, properly escape quote in string