encode object name and clean log