dispatcher: safe ptr -> string conversion