swap endians of a uuid from readline