URL-encode nullbytes in parameters

URL encode nullbytes in parameters to `%00` instead of escaping them as `\\0`.