make sure exports are properly escaped