HTML vs URL Encoding: When to Use Each and Why They Differ