First of all - I don't think
you should be setting any encoding for an
application/vnd.ms-excel content type. You're sending a binary stream, not text, right?
But probably it has nothing to do with your exception. When exactly does it happen? Do you have any stack trace?