Added parameter for fields file encoding