Using IO.pipe to communicate between Threads

setting encoding everywhere