patch applied (cabal-branches/cabal-1.8): Take line endings into account in IOEncodingUTF8 mode