initial spec for pipe input

removed logging

fixed encoding header

closes 1385