Add Travis CI badge
Fix: Zero length field name in format
Handle urlencode import in Python 2 and 3