Handle params key encoding error.

~~Explicitly raise error in case of encoding error.~~

Updated to default decode to binary. Fixes(?) #610.