xcsoar: Added encoding property to Writer class