Fixed issues with search query links with special characters.