[fix] [minor] check for basestring before using encode/decode
Merge branch 'master' of github.com:webnotes/wnframework