replace ^M in file