Read files using proper encoding