improved handling of invalid input in shell-arguments