Fix non-string 'type' bug
Specify unicode encoding
Make Python 2.6 happy
Make Python 3.2 happy
Add a couple more checks in the test
Merge pull request #43 from frewsxcv/fix-type-bug

Fix non-string 'type' bug