Serialization of character