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