elog: Convert non-encodable objects to string