Updates the __str__ of BaseModel to handle Unicode characters

* Added a case of how to handle if the value is of type unicode
* Changed the logic for the log to use isinstance instead of string comparing the key

Change-Id: I97711e04d789ef6875e571925ddea74fc9ae6da4
Merge "Updates the __str__ of BaseModel to handle Unicode characters"