EDM error when wrong file encoding is chosen