Fixes #764: Log the uid as hex

Otherwise the logs aren't processed correctly by heka.