added the ability to pass flags to the client. Currently there's only
one flag and it's meant as a workaround for misbehaving servers that
send bad UTF-8 characters in their JSON-RPC responses. When the flag is
set a half-assed attempt will be made to recover from decoding errors.