Karma: Fix Pypy3 support.

Setting db.text_factory to str gets the repr() of a bytes object, while the default text factory seems to work well on any Python version.