Fixes: shortening URL containing a query param with no value causes Exception

- Just do a basic truncation on the URL when it's formed like this