Mic92/sonata — comment on commit b242a39eef951a317ae361b15046c1a976f507b0
File:  line 0
By multani:

There are definitively too much cast from bytes to string occuring there, but it's not your fault.

However, it would be good to add a todo in the TODO file for this: the library module and mpdh should do the encoding/decoding dance transparently, without the callers having to do it all the time.