Change state to string before uploading
Merge pull request #2 from b263/master

State as string