Only split on basestring types
Merge pull request #6414 from basepi/freebsd6407

Only split on basestring types