Removed override of str. Added explicit checking for bytes/bytearrays