Catch encoding errors when creating spread sheet from file