update teamcity formatter

add escapeTeamcityString function for teamcity formatter