def record2dict(record):
    """
    Make the record into a dict for passing to server
    """
    return dict(source=record.Source.encode("utf-8"),
                trans=record.Trans.encode("utf-8"),
                context=record.Context.encode("utf-8"),
                reliability=record.Reliability,
                validated=record.Validated,
                ref_count=record.RefCount,
                date_created=record.Created,
                last_modified=record.Modified,
                created_by=record.CreatedBy.encode("utf-8"),
                modified_by=record.ModifiedBy.encode("utf-8"),
                id=record.Id)