Beautify key id (thanks to Tim Bray)