Check if a value is instance of basestring, otherwise it doesn't work with
unicode types.
Merge pull request #5 from Kami/fix_unicode_issue

Fix unicode issue