Escape special characters in completions