Set encoding attribute for non-ASCII files