         configuration: Configuration = Configuration()
         ) where T.CodeUnit == UInt8 {
         
-        self.init(stream: stream, configuration: configuration) { (scalar: Unicode.Scalar) in
+        self.init(stream: stream, configuration: configuration) { (scalar: UnicodeScalar) in
             codecType.encode(scalar) { (code: UInt8) in
                 var code = code
                 let count = stream.write(&code, maxLength: 1)

    fileprivate init(
        stream: OutputStream,
        configuration: Configuration,
        writeScalar: @escaping ((Unicode.Scalar) -> Void)) {
        
        self.stream = stream
        self.configuration = configuration

    
    public let stream: OutputStream
    public let configuration: Configuration
    fileprivate let writeScalar: ((UnicodeScalar) -> Void)

    fileprivate var isFirstRecord: Bool = true
    fileprivate var isFirstField: Bool = true
