solving issue with special characters in long polling