basestring fixup