python: Fix deserialisation of chars in Python 3

Before, chars were passed to the caller as bytes object, instead
of string object.