Added ecoding for text files and changed sortindex for a mask.
Authored by: dkroker 2014-12-09
Parent: [r2325]
Child: [r2327]