Remove str/bytes type check for filename; let io.open() do the validity checking.
Thank Irving Reid for unicode filename work