Fix for unicode decode exception that could occur in swarming

Fix for unicode decode exception that could occur in swarming