Do not set -noshell if we are going to override it afterwards
Only set encoding when there is noshell, closes #2432