fix stdin encoding
example for reading from stdin
v1.3.1