replace semicolon with added escape