Fixed #1373 Celery won't start due to UnicodeDecodeError

This fixes the Celery won't start due to UnicodeDecodeError bug (#1373).