If header is unicode, we're going to be sad because `issubclass(unicode, str)` is False. Python provides the abstract 'basestring' class for this check.