Fixed handling percent signs in string.Replace's 2nd argument