input/logictree:

When reading source models from the DB, encode the content as utf-8
(intead of casting to a string) before parsing. This is less
error-prone.