fix string input

Streams in object mode don't convert input strings to buffer automatically, therefore this patch only sets the readable side to object mode.