XLWT only accepts sheet names smaller than 31 characters because that's the excel limit. Fixes #2548 Fixes #3318