Set file encoding.