Wrap file input stream with buffer