I did some digging and this is an oddity with Qt as far as I can tell. It escapes some characters (like ampersands and greater-than signs) like it should, but it doesn't other characters. The really hard part is figuring out how to fix it.
I'm still working on it, but for right now the best I...