core: convert ToStr::to_str to take explicit &self