Fixed CPrimitive.replace so it quotes replacementValue using Matcher.quoteReplacement