Fix the debug handler problem and let the OrientRecord support unicode.

Hi, 

I'm using Orient to hosting some data, and trying to use pyorient to load the data into it.

I found out there is some bug in the logging function(say setDebugLevel or setLoggingCallback), so I fix them.

And when I loading the data up to server, I found out that all the unicode value are filtered out, and I fix that too(not so smart, just encoded the string), hope this patch will make this little library better.

Thanks.