make sure we are passing binary when encoding the url

It is really a pain when you handle a library to check if your form is
only containing binaries. This change just convert it to binary if
needed.