handle stdin
fix test: str->bytes