Fixes #764: Log the uid as hex

Otherwise the logs aren't processed correctly by heka.
Merge pull request #765 from chilts/i764-hexify-uids-for-logs

Fixes #764: Log the uid as hex