Properly URLEncode parameters that go in URLs