Escape umlauts and other special characters in a string. Converts them into HTML entities. Useful when searching for a string in HTML content.