Fix multibyte string handling in LaunchTaskAndFeedOuputLinesToBlock

Fix multibyte string handling in LaunchTaskAndFeedOuputLinesToBlock 

Fixes #387.