only encode string parameters to utf8
test fixes and compatibility fixes
Merge pull request #11 from janrain/topic/parameter-encoding-bug

only encode string parameters to utf8