Encode and decode as needed so we don't write invalid XML, define a var.
Special chars everywhere.
Merge pull request #32 from jordandukart/7.x-FLVC-54

Encode and decode as needed so we don't write invalid XML, define a var.