Move --script-encoding handling to runner