Convert kwargs to strings in order to support python 2.6

Python 2.6 does not allow unicode keys for kwarg dicts and raises a TypeError