Modified UrlEncode to encode strings in parts, so that we never exceed the artifical limit of 32766 characters of Uri.EscapeDataString