Use undecided-unix as coding system for writing temp files

Otherwise git will think there is trailing whitespace on Windows (in the magit-apply-hunk-item case) and get confused.