Better handling of slashes in server URLs