file encoding fix for utf-16 persisted indexes