trim non-base60 characters

trim some non-base60 characters from the query string before decoding it, in case clients accidentally auto-link a trailing close paren