Encode binary URI params

When parameter was specified as a binary it was not uri-encoded.