     
     for ch in name.unicodeScalars {
         if ch.value < 0x80 {
-            y.append(UInt8(ch))
+            y.append(UInt8(ch.value))
             continue
         }
         isASCII = false
         
         if ch.value < 0x100 {
-            y.append(UInt8(ch))
+            y.append(UInt8(ch.value))
             continue
         }
         // might be a combining character that when combined with the

            return
        }
        
        y.append(UInt8(repl))
    }
    
    if isASCII {

        if let str = rslt.0 {
            if !rslt.hadError {
                name = str
            } else {
                println("error")
            }
        } else {
            println("error")
        }
        
        return
