improve fileencodings