utils.text: handle bytes from os.urandom()
utils.text: handle bytes from os.urandom()

os.urandom() returns bytes, which cannot be .encoded(). On the flip
side, bytes has a .hex() method, so just use that instead.

Signed-off-by: Apollon Oikonomopoulos <ed81ed0a45ccd5c8869bda52e38353a6299ee39e@dmesg.gr>

mbakke/ganeti,ganeti/ganeti,mbakke/ganeti,mbakke/ganeti,ganeti/ganeti,ganeti/ganeti