fix getquoted for datetime
more random unicode-related fixes
I think this is proper test for both py3 and py2
well, py2 insist that this should be a string, fine