backend.py: do not encode strings for shlex

In py2, encode returns str object
In py3, encode returns bytes object

Took me hours to find this damn problem