Update worker.py

Replace Invalid characters with placeholders so we don't explode when something funny shows up in a log file.