Fixed encoding for reading files