Transformers for converting to and from the FileMessage type.