correct the error in merge result (encoding problem)