unicode string issues fixed by using python buffers