normalize trace ids, so that numeric ids don't cause crashes