fix(client): encode unicode properly for apps:run

I reviewed the deis.py client code as well but didn't see other instances where `encode` was required to handle unicode input or output.

Closes #2801.