converts user objects to unicode, improve error logging