Improved feature files charset detection