Text this: National Treatment and the optimal regulation of environmental externalities