Applescript gefunden! Brauch aber Hilfe bei Unicode...

Hallo habe ein passendes Script hier gefunden:
http://www.mactechnews.de/forum/discussion/Freche-Frage-AppleScript-das-alle-ausgewaehlten-Mails-einzeln-als-reine-Datei-in-einen-Ordner-speichert-313262.html

Show Plain Text
  1. global theFile
  2.  
  3. set ptd to choose folder
  4.  
  5. tell application "Mail"
  6.   set theMessages to selection
  7.   repeat with theMessage in theMessages
  8.     set theText to source of theMessage
  9.     -- set theText to content of theMessage -- (Inhalt der E-Mail)
  10.     -- set theText to source of theMessage as «class utf8»
  11.     -- set theText to paragraphs of (theMessage as «class utf8»)
  12.     set theSubject to (subject of theMessage)
  13.     if theSubject is "" then set theSubject to ":kein:betreff:"
  14.     if theSubject contains ":" then ¬
  15.       set theSubject to my snr(theSubject, ":", "_")
  16.     if theSubject contains "/" then ¬
  17.       set theSubject to my snr(theSubject, "/", "_")
  18.     set msgDate to date received of theMessage
  19.     set {year:y, month:m, day:d, hours:h, minutes:min} to (msgDate)
  20.     set y to characters 3 through 4 of (y as string)
  21.     set msgDate to (y & my pad2(m as integer) & my pad2(d))
  22.     set theFile to ((ptd & msgDate & space & theSubject) & ".eml") as string
  23.     my resolveConflict(ptd, msgDate, theSubject)
  24.     set theFileID to open for access file theFile with write permission
  25.     write theText to theFileID as «class utf8»
  26.     close access theFileID
  27.   end repeat
  28. end tell
  29.  
  30. on pad2(n)
  31.   return text -2 thru -1 of ("00" & n)
  32. end pad2
  33.  
  34. on resolveConflict(ptd, msgDate, theSubject)
  35.   tell application "Finder"
  36.     set theCounter to 1
  37.     set noConflict to false
  38.     repeat until noConflict
  39.       if exists file (theFile) then
  40.         set theFile to ((ptd & msgDate & space & theSubject & " -" & theCounter as string) & ".eml")
  41.         set theCounter to theCounter + 1
  42.       else
  43.         set noConflict to true
  44.       end if
  45.     end repeat
  46.   end tell
  47. end resolveConflict
  48.  
  49. on snr(theString, searchString, replaceString)
  50.   tell (a reference to my text item delimiters)
  51.     set {oldTID, contents} to {contents, searchString}
  52.     set {theString, contents} to {theString's text items, replaceString}
  53.     set {theString, contents} to {theString as Unicode text, oldTID}
  54.   end tell
  55.   return theString
  56. end snr


Enthält eine Mail nun Umlaute, werden diese leider in der Zeile:
set theText to source of theMessage
als MacRoman eingelesen. Ich schaffe es leider nicht den kompletten Inhalt gleich als UTF8 einzulesen.

Weiß jemand von euch wie man das hinbekommt?