Issue #1853196 by Devin Carlson: Encode/decode HTML entities to prevent special characters from getting mangled.