Move hex from console.js to util.js, fixing SIO logging