osEncode: rm ^M in file