make sure to encode doRequest response to JSON if possible (fix #847)
Merge pull request #848 from jlipps/master

fix selendroid response parsing