Update core.py

Made error message format string a unicode strings. If the versioned object has __unicode__, then use it for clarity.