Use six equivalent of basestring
unicode compatible __str__