Remove query string from binary name