Convert kwargs to strings in order to support python 2.6