Earth is always capitalized. But there is no need to put "the" before it. Think of Earth like a state. Would you ever say, "I'm going to the Texas."? No. If you don't beleive me, you can fo to a search engine and type in Earth, it will always be capitalized.