remove encoding proc from runShell API.