Serializing pictograms correctly