Added sink.enc parameter for encoding