Workaround fix for UnicodeDecodeError

Workaround fix for UnicodeDecodeError which seems to occur when json tries to parse a response string from executeJSONRPC.