Contrastive Masked Autoencoders for Character-Level Open-Set Writer Identification