Topological entropy for nonuniformly continuous maps