more narrow string-type meddling

Don't redefine basestring, just define a different string-check method.