feat: file streaming support

Basic auth encoding to use strict encoding to avoid newline character
being appended