Handle params key encoding error.

By changing default encoding to BINARY, allowing arbitrary regexp to pass.