fix EncodeURLElement string types
EncodeURLElement is wrong after Unicode/Ansi changes. It mixed PChar with UnicodeString.
I assume the original function should have stayed with AnsiString and the UnicodeString overload should have been added with UTF8Decode/UTF8Encode as DecodeURLElement is written.
I tested the commit and it looks fine.