Protect against server sending ints as strings.
Merge pull request #9 from gadabout/bugfixes/string-ints

Protect against server sending ints as strings.