Fix encoding bug in runner.execute and add tests for that
Merge branch 'hotfix/1.6.4'