URLEncode([]) string pointer reuse issue