Escape search keywords and retain functionality