File encoding initial implementation