Only split on basestring types

Ref #6413 and #6407

Just prevents errors down the road.  Credit goes to @SEJeff.  =)