allow multibyte chars also from stdin