Trim url that is causing us to die