Strip trailing dot from search and domain names, fixes [2b60f8c312].