set stdin/stdout to binary mode; remove UTF8 decoding