Fix for #10438 When joining parameters via AND / OR, make sure they are quoted
Make sure non-ascii text is handled correctly #10649
added test_mangleQuery_non_ascii, refs #10822