Replace tilde with caret.