fix UUID parsing when last char(s) are nulls