fix #406

Fix unicode error in job args & kwargs. Python 2/3 compatibility.