Allow specification of file encoding