rql #1190507 str vs unicode vs as_string() [validation pending]

the as_string method, in particular when a string constant is involved, uses inconsistent quoting depending on the use of str vs unicode. It also uses repr, which does not help.

This should be consolidated to give predictable results.

prioritynormal
typebug
done in0.34.0
load5.000
load left0.000
closed by#43e30d2417b1 [py3k] Unicode everywhere, drop as_string()'s 'encoding' parameter
patch[py3k] Unicode everywhere, drop as_string()'s 'encoding' parameter [applied]