Fixing minor potential bug

Integer.toHexString may not always return two digits. Pad with a leading
0 if not.