added encoding parameter to shellout