Backport PR #4345: Make irunner compatible with upcoming pexpect 3.0 interface

`irunner` is designed to use the native string type on both Python 2 and Python 3. This allows it to use the correct form of `pexpect.spawn`.