Convert shlex inputs to strings; should fix failures on Python-2.6.6