Fix UnicodeDecodeError in job.py (Issue #406)