Fixed problem with XLS encoding