ENH: use tostring() method for better py3k compatibility
ENH: use string representations irrespective of input datatype type