Fix an 'invalid input type' because some python versions interpret as unicode by default
Merge pull request #545 from puiterwijk/fix-unicode

Fix an 'invalid input type' because some python versions interpret as unicode by default