     {
         var isASCII = true;
         var y: [UInt8] = [];
-        var lookup: Dictionary<String, UnicodeScalar> = [:]
 
         func ShortCode(l: UnicodeScalar, c: UnicodeScalar) -> UnicodeScalar
         {
             let s = "\(l)\(c)";
-            let r = lookup[s];
+            let r = memoizer[s];
             if let y = r { return y }
 
             for i in 0x80...0xFF {

    ProcessName(dirname, basename);
}

func Main(progname: String, arguments: Slice<String>) -> ()
{
    for arg in arguments {
        switch (arg) {

                let v = String(ch);

                if v == s {
                    memoizer[s] = ch;
                    return ch;
                }
            }
            return UnicodeScalar(0xFFFD); // Unicode replacement character �
        }
        for ch in bad.unicodeScalars {
            if ch.value < 0x80 {
