open stdin binary to read utf-8 as well