convert datatype to unicode in _encode_python_literal. django get_or_create does not handle it properly