use isinstance( obj, basestring) to allow unicode strings

fixes #448