fixed stdout, now it writes out normally instead of ascii codes