Strip the trailing slash from server uri on ->new

It looks like the module fails some requests (like linking tickets) if
there is a double slash.