Fix hex conversion in Serializable