Fixing issue where strange encodings in failed job log cause exception