Improve fileencodings settings

the old one may broken sometime