Escape the sed replacement string properly